package com.ym.medical.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BaseEntity;
import com.ym.medical.enums.ServiceTermsEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 法务条款表对象 service_terms
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("法务条款表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "service_terms")
public class ServiceTermsEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 标识号
	 */
	@ApiModelProperty("标识号")
	private String termsCode;

	/**
	 * 条款名称
	 */
	@ApiModelProperty("条款名称")
	@JsonSerialize(converter = ServiceTermsEnum.Covert.class)
	private String termsName;

	/**
	 * 条款内容
	 */
	@ApiModelProperty("条款内容")
	private String temsContentUrl;

	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	private Date createTime;

	/**
	 * 状态
	 */
	@ApiModelProperty("状态")
	private String state;

}
